package com.panda.pandawash.bean;

/**
 * Created by ubuntu on 17-3-24.
 */

import android.app.Notification;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.widget.RemoteViews;

import com.panda.pandawash.activity.UpdateActivity;

public class NotificationBean extends Notification {
    private Context mContext;

    public NotificationBean(Context context, int icon, CharSequence tickerText, long when) {
        super(icon, tickerText, when);
        this.mContext = context;
        this.flags = 16;
        RemoteViews mRemoteView = new RemoteViews(this.mContext.getPackageName(), 2130903067);
        this.contentView = mRemoteView;
        Intent intent = new Intent(this.mContext, UpdateActivity.class);
        intent.addFlags(536870912);
        PendingIntent pIntent = PendingIntent.getActivity(this.mContext, 0, intent, 134217728);
        this.contentIntent = pIntent;
    }
}
